package cn.stevenyang.services;

import org.apache.velocity.tools.generic.MathTool;

public class ArithmeticService {
    private final MathTool mathTool = new MathTool();
    public Object add(Object x, Object y) {
        return mathTool.add(x, y);
    }
    public Object minus(Object x, Object y) {
        return mathTool.sub(x, y);
    }
    public Object multiply(Object x, Object y) {
        return mathTool.mul(x, y);
    }
    public Object divide(Object x, Object y) {
        return mathTool.div(x, y);
    }
    public Object mod(Object x, Object y) {
        return mathTool.mod(x, y);
    }
}
